package org.mi.rabbitMQ.subscribe.sender;

import org.springframework.amqp.core.FanoutExchange;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MqConfig {

    /**
     * 绑定交换机
     * @return 交换机对象
     */
    @Bean
    public FanoutExchange fanoutExchange() {
        return new FanoutExchange("testSubscribe");
    }
}
